/*
* Poppy Game Engine - https://pgetemplate.googlecode.com/svn/
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2008 Poppy
*/

#pragma once

#include "MainExportSymbol.h"
#include "CMemObject.h"

namespace PGEMain
{

	class PGEMAIN_API CRefObject : virtual public PGESystem::CMemObject
	{

	public:

		inline void AddRef();

		inline void Release();

	protected:

		CRefObject() : m_uiRefCount(0) {}
		unsigned int m_uiRefCount;

		inline void DeleteThis();

	};

	#include "CRefObject.inl"

}
